import Vue from 'vue'
import Router from 'vue-router'
//首页内容
import IndexContent from '@/components/IndexContent'
//关于我们
import AboutContent from '@/components/AboutContent'
//淘宝咨询
/*import AdviceContent from '@/components/AdviceContent'
//淘宝咨询列表页
import TabConent from '@/components/TabConent'
//淘宝咨询详情页
import Detail from '@/components/Detail'*/
//优秀案例
import GreatCase from '@/components/GreatCase'
//电商实操班
import ElectronicPract from '@/components/ElectronicPract'
//电商精英班
import ElectronicPro from '@/components/ElectronicPro'
//美工视觉班
import ArtView from '@/components/ArtView'
//阿里巴巴/跨境班
import Abroad from '@/components/Abroad'
//企业孵化
import Enterprise from '@/components/Enterprise'
//政府合作
import Goverment from '@/components/Goverment'
//美工外包
import ArtDesign from '@/components/ArtDesign'
//产品摄影
import Photograph from '@/components/Photograph'
//直通车代开
import Train from '@/components/Train'

const AdviceContent = () => import(/* webpackChunkName: "group-advice" */ '../components/AdviceContent')
const TabConent = () => import(/* webpackChunkName: "group-advice" */ '../components/TabConent')
const Detail = () => import(/* webpackChunkName: "group-advice" */ '../components/Detail')


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: IndexContent
    },
    {
      path:'/advice',
      component:AdviceContent,
      children:[
        {path:'/advice',redirect:'/advice/type/0/page/1',component:TabConent},
        {path:'/advice/type/:id/page/:page', component:TabConent,},
        {path:'/advice/type/:id/page/:page/id/:detailId',component:Detail}

      ]
    },
    {
      path:'/about',
      component:AboutContent
    },
    {
      path:'/case',
      component:GreatCase
    },
    {
      path:'/electronicPract',
      component:ElectronicPract
    },
    {
      path:'/electronicPro',
      component:ElectronicPro
    },
    {
      path:'/view',
      component:ArtView
    },
    {
      path:'/abroad',
      component:Abroad
    },
    {
      path:'/enterprise',
      component:Enterprise
    },
    {
      path:'/goverment',
      component:Goverment
    },
    {
      path:'/artDesign',
      component:ArtDesign
    },
    {
      path:'/photograph',
      component:Photograph
    },
    {
      path:'/train',
      component:Train
    }
  ]
})
